﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_user_frame.aspx.cs" Inherits="Ccit.SysPlat.Organ.sys_user_frame" %>

<html>
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../script/jquery.js"></script>
    <script type="text/javascript">    
    <!--
        /* FuncDesc:   当点击显示已删除用户checkbox时触发(只显示/隐藏)已删除用户
        * FuncParam:  none
        * FuncReturn: void
        */
        function doRangeChange() {
            var ctrlChk = $get("chkShowRange");
            var delSign = (ctrlChk.checked) ? "1" : "0";       
            var organId = $get("_hidOrganId").value;
            var vPageParam = "organId=" + organId + "&delSign=" + delSign;
            var encodeParam = base64encode(vPageParam);
            $get("ifrList").src = "./sys_user_list.aspx?" + encodeParam;
        }
       
        /* FuncDesc:   恢复用户默认口令
        * FuncParam:  none
        * FuncReturn: void
        */
        function doResumePwd() {
            if (!confirm("恢复用户默认口令,是否继续?")) return;           
            self.frames[0].doResumePwd();
        }

        /* FuncDesc:   新增用户
        * FuncParam:  none
        * FuncReturn: void
        */
        function doAddNew() {
            var organId = $get("_hidOrganId").value;
            var vPageParam = "organId=" + organId;
            var encodeParam = base64encode(vPageParam);
            self.document.location.href = "./sys_user_edit.aspx?" + encodeParam;
        }

        /* FuncDesc:   删除用户
        * FuncParam:  none
        * FuncReturn: void
        */
        function doDelete() {
            if (!confirm("批量删除用户,是否继续?")) return;
            self.frames[0].doBatDelete();
        }

        /* FuncDesc:   选择全部用户记录
        * FuncParam:  none
        * FuncReturn: void
        */
        function doSelALLUser() {
            if ($get("chkMenuALL").checked) {
                self.frames[0].doSelALLUser();
            }
            else {
                self.frames[0].doUnSelALLUser();
            }
        }
    //-->
    </script>
</head>
<body>
    <form id="form1" runat="server"> 
    <input type="hidden" id="_hidOrganId" runat="server" />   
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
     <table class="tbToolbar" cellpadding="0" cellspacing="0" width="98%" align="center">
        <tr>
            <td align="left">
                <div class="tbSeparator"></div>
            </td>
            <td width="100%" class="titlebar">用户管理</td>
            <td align="right">
                <div class="tbSeparator"></div>
            </td>
            <td align="right">
                <nobr>
                    <input type="checkbox" id="chkShowRange" onclick="doRangeChange()" class="checkbox">显示已删除用户
                </nobr>
            </td>                      
            <%--<td align="right">
                <nobr>
                    <a href="javascript:doQuickSearch()" class="linktext">
                        <img src="../images/toolbar/search.gif"  border="0" />查询
                    </a>
                </nobr>
            </td>--%>
            <td align="right">
                <div class="tbSeparator"></div>
            </td>
            <td align="right">
                <nobr>
                    <input type="checkbox" id="chkMenuALL" onclick="doSelALLUser()" class="checkbox" />选择全部&nbsp;
                    <a href="javascript:doResumePwd()"  class="linktext">
                        <img src="../images/organ/resetPwd.gif" border="0" />恢复默认口令
                    </a>
                </nobr>
            </td>
            <td align="right">
                <div class="tbSeparator"></div>
            </td>  
            <td align="right">
                <nobr>
                    <a href="javascript:doAddNew()"  class="linktext">
                        <img src="../images/toolbar/addnew.gif" border="0" />新增
                    </a>
                </nobr>
            </td>
            <td align="right">
                <nobr>
                    <a href="javascript:doDelete()"  class="linktext">
                        <img src="../images/toolbar/delete.gif" border="0" />删除
                    </a>
                </nobr>
            </td>
             <td align="right">
                <div class="tbSeparatorEnd"></div>
            </td>
        </tr>
    </table>
    <iframe id="ifrList" name="ifrList" src="" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" align="center" width="98%" height="100%"></iframe>
    </form>
    <script type="text/javascript">
    <!--
        $(document).ready(function() {
            var organId = $get("_hidOrganId").value;
            var vPageParam = "organId=" + organId;
            var encodeParam = base64encode(vPageParam);
            $get("ifrList").src = "./sys_user_list.aspx?" + encodeParam;
        });
    //-->
    </script>
</body>
</html>
